<template>
	<view class="yinsi" style="width: 100%;padding-left: 15rpx; box-sizing: border-box;">
		<rich-text type="text" :nodes="constent"></rich-text>
	</view>

</template>

<script>
	import {
		getConfig
	} from "@/api/api.js"
	var graceRichText = require("../../static/richText.js");
	export default {
		data() {
			return {
				constent: "",
			}
		},
		onLoad() {
			this.handlegetsettings()
		},
		methods: {
			async handlegetsettings() {
				let res = await getConfig()
				this.constent = res.data
				this.constent = graceRichText.format(res.data[1].value)
				// console.log("用户协议",res)
			},
		}
	}
</script>

<style scoped lang="scss">
	.yinsi{
		width: 100%;
		min-height: 100%;
		background-color: #ffffff;
	}

</style>